package com.credithc.signature.common.ro.manager;

import com.credithc.signature.common.annotation.EndTime;
import com.credithc.signature.common.annotation.LikeSearch;
import com.credithc.signature.common.annotation.StartTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class RequestLogRo {

    Long id;
    String date;
    String channelNo;
    String url;
    String requestSn;
    String templateNo;
    @LikeSearch(value = true)
    String templateName;
    @LikeSearch(value = true)
    String callbackUrl;
    Integer sealType;
    Integer isSeal;
    Long refId;
    Integer signStatus;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale = "zh")
    @StartTime
    Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale = "zh")
    @EndTime
    Date updateTime;
    Integer pageNo;
    @Builder.Default
    Integer queryPageNo = 0;
    Integer pageSize;
    List<String> channelNos;
}
